const speakeasy = require('speakeasy');

exports.getCode = (phoneNumber) => {
  let secretCode = speakeasy.totp({
    secret: phoneNumber+new Date().getTime(),
    digits: 6
  })
  return secretCode;
}

exports.sendCode = () => {
  console.log("已发送");
}